package com.xdcplus.web.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.xdcplus.mp.mapper.IBaseMapper;
import com.xdcplus.web.common.pojo.entity.DwWorkConf;
import com.xdcplus.web.common.pojo.query.DwWorkConfQuery;
import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;
import java.util.List;

/**
 * 执行任务计划(DwWorkConf)表数据库访问层
 *
 * @author ma.qing
 * @since 2023-07-06 18:24:55
 */
public interface DwWorkConfMapper extends IBaseMapper<DwWorkConf> {

    /**
     * 查询执行任务计划(DwWorkConf)
     *
     * @param dwWorkConfQuery 执行任务计划(DwWorkConf)查询
     * @return {@link List<DwWorkConf>}
     */
    List<DwWorkConf> queryDwWorkConf(DwWorkConfQuery dwWorkConfQuery);

    DwWorkConf queryDwWorkConfByEtlName(@Param("etlName") String etlName);

    void updateConfById(@Param("id") Long id,
                        @Param("startTime") Timestamp startTime,
                        @Param("endTime") Timestamp endTime);


}
